package cn.iocoder.yudao.module.infra.controller.admin.ocr.vo.record;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "Admin - OCR Record Page Request VO")
@Data
public class OcrRecordPageReqVO extends PageParam {

    @Schema(description = "Configuration ID", example = "1")
    private Long configId;

    @Schema(description = "OCR type", example = "1")
    private Integer type;

    @Schema(description = "File name", example = "test.jpg")
    private String fileName;

    @Schema(description = "Recognition status", example = "1")
    private Integer status;

    @Schema(description = "Create time", example = "[2022-07-01 00:00:00, 2022-07-01 23:59:59]")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}